package com.example.waternetwork.api.supervision.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 水库调度方案成果特征信息
 * </p>
 */
@Getter
@Setter
@ToString
@TableName("supervision.feature_reservoir_dispatch_plan")
@Schema(name = "FeatureReservoirDispatchPlan", description = "水库调度方案成果特征信息实体")
public class FeatureReservoirDispatchPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "调度方案ID")
    @TableField("plan_id")
    private Long planId;

    @Schema(description = "实测降雨量（单位：mm）")
    @TableField("realtime_rainfall")
    private BigDecimal realtimeRainfall;

    @Schema(description = "预报降雨量（单位：mm）")
    @TableField("forecast_rainfall")
    private BigDecimal forecastRainfall;

    @Schema(description = "总降雨量（单位：mm）")
    @TableField("sum_rainfall")
    private BigDecimal sumRainfall;

    @Schema(description = "最大入库流量（单位：m³/s）")
    @TableField("max_inflow")
    private BigDecimal maxInflow;

    @Schema(description = "入库洪峰出现时间")
    @TableField("max_inflow_time")
    private LocalDateTime maxInflowTime;

    @Schema(description = "最大泄洪流量（单位：m³/s）")
    @TableField("max_outflow")
    private BigDecimal maxOutflow;

    @Schema(description = "最大泄洪出现时间")
    @TableField("max_outflow_time")
    private LocalDateTime maxOutflowTime;

    @Schema(description = "削峰率（单位：%）")
    @TableField("clip_rate")
    private BigDecimal clipRate;

    @Schema(description = "入库总水量（单位：万m³）")
    @TableField("sum_inflow_capacity")
    private BigDecimal sumInflowCapacity;

    @Schema(description = "出库总水量（单位：万m³）")
    @TableField("sum_outflow_capacity")
    private BigDecimal sumOutflowCapacity;

    @Schema(description = "拦蓄水量（单位：万m³）")
    @TableField("intercepted_water")
    private BigDecimal interceptedWater;

    @Schema(description = "径流系数（无单位）")
    @TableField("runoff_coefficient")
    private BigDecimal runoffCoefficient;

    @Schema(description = "起调水位（单位：m）")
    @TableField("initial_level")
    private BigDecimal initialLevel;

    @Schema(description = "最高水位（单位：m）")
    @TableField("max_level")
    private BigDecimal maxLevel;

    @Schema(description = "最高水位发生时间")
    @TableField("max_level_time")
    private LocalDateTime maxLevelTime;

    @Schema(description = "退水时间（退至汛限水位的时间）")
    @TableField("recession_time")
    private LocalDateTime recessionTime;

    @Schema(description = "推送时间")
    @TableField("push_time")
    private LocalDateTime pushTime;
}
